// src/utils/tableColumns.js
// 订单-客户信息列配置
export const orderList = [
  { title: '订单编号', field: 'orderNum', required: true },
  { title: '发起日期', field: 'pickDate', required: true, disabled: true },
  { title: '所属部门', field: 'department', required: true, disabled: true },
  { title: '销售人员', field: 'salesPerson', required: true, disabled: true },
  { title: '客户名称', field: 'customerName', required: true, disabled: true },
  { title: '到货日期', field: 'arrivalDate', required: true, disabled: true },
  { title: '备注', field: 'notes' }
];

// 产品信息列配置
export const productList = [
  { title: '发货园区', field: 'parkName', required: true },
  { title: '产品名称', field: 'productName', required: true, disabled: true },
  { title: 'SKU名称', field: 'skuName', required: true },
  { title: '原订单数（箱/件）', field: 'piece', required: true },
  { title: '原订单重量（kg）', field: 'grossWeight', required: true },
  { title: '箱规（最小规格数量）', field: 'weight', required: true },
  { title: '原订单单价（元/kg）', field: 'desc', required: true },
  {
    title: '处理方式',
    field: 'saleType',
    required: true,
    type: 'radio',
    options: [{ label: '退货', value: '退货' }, { label: '折价', value: '折价' }]
  },
  { title: '售后重量(kg)', field: 'compensationQuantity', required: true, show: false },
  { title: '折价后单价(元/kg)）', field: 'discountPrice', required: true, show: false },
  { title: '最终应付金额(元)', field: 'actualPayableAmount', required: true, show: false, disabled: true },
  { title: '备注', field: 'reason' }
];

// 订单客户信息列配置（products）
export const products = [
  { title: '订单编号', field: 'orderNum', required: true },
  { title: '客户名称', field: 'customerName', required: true },
  { title: '产品名称', field: 'productName', required: true },
  { title: 'SKU名称', field: 'skuName', required: true },
  { title: '最小规格/kg', field: 'minimum', required: true },
  { title: '箱规（数量）', field: 'weight', required: true },
  { title: '外包装订单数量', field: 'piece', required: true },
  { title: '销售单价（最小规格/元）', field: 'price', required: true },
  { title: '销售合计/元', field: 'priceTotal', required: true },
  { title: '订单重量', field: 'weightTotal', required: true },
  { title: '单价（kg/元）', field: 'desc', required: true },
  {
    title: '处理方式',
    field: 'saleType',
    required: true,
    type: 'radio',
    options: [{ label: '涨价', value: '涨价' }, { label: '降价', value: '降价' }]
  },
  { title: '调价后单价', field: 'adjustPrice', required: true },
  { title: '调价后销售合计/元', field: 'adjustPriceTotal', required: true, disabled: true },
  { title: '调价后单价(公斤/元)', field: 'adjustDesc', required: true, disabled: true }
];

// 订单客户信息列配置（customerList）
export const customerList = [
  { title: '订单编号', field: 'orderNum', required: true },
  { title: '客户名称', field: 'customerName', required: true, disabled: true },
  { title: '所属部门', field: 'department', required: true, disabled: true },
  { title: '销售人员', field: 'salesPerson', required: true, disabled: true },
  { title: '付款账期', field: 'accountPeriod', required: true, disabled: true },
  { title: '所在区域', field: 'area', required: true, disabled: true },
  { title: '客户形式', field: 'customerForm', required: true, disabled: true },
  { title: '收货人', field: 'customerTake', required: true, disabled: true },
  { title: '联系电话', field: 'customerPhone', required: true, disabled: true },
  { title: '付款方式', field: 'customerPay', required: true, disabled: true },
  { title: '是否开票', field: 'isInvoicing', required: true, disabled: true },
  { title: '详细地址', field: 'address', required: true, disabled: true }
];

// 要更正的客户信息列配置
export const orderCustomer = [
  { title: '客户名称', field: 'customerName', required: true },
  { title: '所属部门', field: 'department', required: true },
  { title: '销售人员', field: 'salesPerson', required: true },
  { title: '付款账期', field: 'accountPeriod', required: true },
  { title: '所在区域', field: 'area', required: true },
  { title: '客户形式', field: 'customerForm', required: true },
  { title: '收货人', field: 'customerTake', required: true },
  { title: '联系电话', field: 'customerPhone', required: true },
  { title: '付款方式', field: 'customerPay', required: true },
  { title: '是否开票', field: 'isInvoicing', required: true },
  { title: '详细地址', field: 'address', required: true }
];